package tech.aistar.design.template.demo03;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 9:48 上午
 */
public class UserDaoImpl implements IUserDao {
    @Override
    public void findAll() {
        //jdbc
        JdbcTemplate.execute(()->{
            System.out.println("select * from t_user");
        });

    }

    @Override
    public void delById(Integer id) {
        //jdbc
        JdbcTemplate.execute(new SqlCallback() {
            @Override
            public void executeSQL() {
                System.out.println("delete from t_user");
            }
        });
    }
}
